/*
 * @Author: tcosfish
 * @Date: 2022-08-19 09:29:55
 * @LastEditors: tcosfish
 * @LastEditTime: 2022-08-19 09:37:54
 * @FilePath: \loadFile\src\database\entities\Record.ts
 */

import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"
;["", "code", "name", "debit", "credit", ""]

@Entity()
class Record {
  @PrimaryGeneratedColumn({ type: "int", comment: "ID" })
  id: number = 0

  @Column({ type: "varchar", comment: "科目代码" })
  code: string = ""

  @Column({ type: "varchar", comment: "科目名称" })
  name: string = ""

  @Column({ type: "double", nullable: true, comment: "借方" })
  debit: number = 0

  @Column({ type: "double", nullable: true, comment: "贷方" })
  credit: number = 0
}

export default Record
